package com.xiao.asset.controller;


import com.xiao.asset.services.AssetService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;


/**
 * Created by 衰草寒烟 on 2016/10/28.
 */
@RequestMapping("/main")
@Controller("main")
public class AssetmodelController {
    private static Logger log=Logger.getLogger(AssetmodelController.class);
    @Autowired
    AssetService assetservice;

    /**
     * 首页
     */
    @RequestMapping("/home")
    public ModelAndView gethome(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("home");
        return mv;
    }
    /**
     * 应用层
     */
    @RequestMapping("/yingyong")
    public ModelAndView getyingyong(){
        ModelAndView mv=new ModelAndView();
        mv.setViewName("/yingyong");
        return mv;
    }



}
